﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SAutoArenaFightRecord extends Object
    {
        public var timepiece:int;
        public var skillId:int;
        public var fromEntity:SEntityId;
        public var toEntity:SEntityId;
        public var propertyUpdates:Array;

        public function SAutoArenaFightRecord()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.timepiece);
            param1.writeInt(this.skillId);
            this.fromEntity.__write(param1);
            this.toEntity.__write(param1);
            SeqAttributeUpdateHelper.write(param1, this.propertyUpdates);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.timepiece = param1.readInt();
            this.skillId = param1.readInt();
            this.fromEntity = new SEntityId();
            this.fromEntity.__read(param1);
            this.toEntity = new SEntityId();
            this.toEntity.__read(param1);
            this.propertyUpdates = SeqAttributeUpdateHelper.read(param1);
            return;
        }// end function

    }
}
